package com.example.cxx.mapper;

import com.example.cxx.pojo.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ScoreSubMapper {
    boolean exist(String openid);
    boolean insertScore(String openid);
    Integer selectSubStatus(String openid);
    void setScoreSub(Integer status,String openid);
    List<String> selectAllSubOpenid();
    Integer selectUserIdByOpenId(String openid);

    void insertScoreUpdate(Integer userAccount,Integer scoreNum);
    boolean selectScoreUpdateByUserAccount(Integer userAccount);
    boolean updateScoreUpdate(Integer userAccount,Integer scoreNum);
    Integer selectScoreNumByUserAccount(Integer userAccount);

}
